<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>增加报告</title>
<!--                       CSS                       -->
<link rel="stylesheet" href="<%=path%>/resources/css/reset.css"
	type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="<%=path%>/resources/css/Addstyle.css"
	type="text/css" media="screen" />
<link rel="stylesheet" href="<%=path%>/resources/css/invalid.css"
	type="text/css" media="screen" />
<link type="text/css"
	href="<%=path%>/resources/date/jquery.datepick.css" rel="stylesheet" />
<style type="text/css">
	.itijiao{
	border-right: #7b9ebd 1px solid; 
	padding-right: 2px; 
	border-top: #7b9ebd 1px solid; 
	padding-left: 2px; 
	font-size: 12px; 
	filter: progid:dximagetransform.microsoft.gradient(gradienttype=0, startcolorstr=#ffffff, endcolorstr=#cecfde); 
	border-left: #7b9ebd 1px solid; 
	cursor: hand; 
	color: black; 
	padding-top: 2px; 
	border-bottom: #7b9ebd 1px solid;
	width:80px;
	height:30px
	
	}
</style>
</head>
<body>
	<div id="body-wrapper">

		<div id="main-content">

			<div class="clear"></div>
			<div class="content-box">
				
				<div class="content-box-content">
									
					<div  id="tab2" style="display: inline;">
						<form action="addReport.action" method="post">
							<fieldset>
								<div style="font-size:14px;color:blue;font-weight: bold">报告信息</div>
								<!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								<p>
											 报  告  年 度：
											 <s:textfield  cssClass="text-input" 
												 name="report.reportyear" ></s:textfield>
											 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											报 告  单 号：
											 <s:textfield  cssClass="text-input" 
												id="report.reportno" name="report.reportno" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											报 告  字 号：
											<s:select name="report.reporttype" cssStyle="width:163px;height:30px" 
												list="#request.rptpemap"   listKey="key" listValue="value" value="report.reporttype"  headerKey="0" headerValue="请选择"></s:select>
									<br />
								</p>
								<p>
											协 议  金 额：
											 <s:textfield  cssClass="text-input" 
												id="report.treatyprice" name="report.treatyprice" />
											&nbsp;&nbsp;&nbsp;&nbsp;
											是否协议书：&nbsp;
											<s:select name="report.isagreement" cssStyle="width:163px;height:30px" 
												list="#request.agreeMap"   listKey="key" listValue="value" value="report.isagreement"  headerKey="0" headerValue="请选择"></s:select>
											
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<!-- Classes for input-notification: success, error, information, attention -->
									<br />
								</p>
								<p>
											项目负责人：
												<s:select name="report.projectleader" cssStyle="width:163px;height:30px" 
												list="#request.project_leaderList"   listKey="uid" listValue="name" value="report.projectleader"  headerKey="-1" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;
											联  系  人：&nbsp;
												<s:select name="report.contactperson" cssStyle="width:163px;height:30px" 
												list="#request.contact_personList"   listKey="uid" listValue="name" value="report.contactperson"  headerKey="-1" headerValue="请选择"></s:select>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
											联 系  电 话：&nbsp;
												<s:textfield  cssClass="text-input" id="report.telephone" name="report.telephone" />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	
										 <br />
								</p>
								<p>
											注会计师一： 
											<s:select name="report.cpaone" cssStyle="width:163px;height:30px" 
												list="#request.cpa_oneList"   listKey="uid" listValue="name" value="report.cpaone"  headerKey="0" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												
											注会计师二：&nbsp;
											<s:select name="report.cpatwo" cssStyle="width:163px;height:30px" 
												list="#request.cpa_twoList"   listKey="uid" listValue="name" value="report.cpatwo"  headerKey="-1" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											助理人员一：&nbsp;
											<s:select name="report.helpmateone" cssStyle="width:163px;height:30px" 
												list="#request.helpmate_oneList"   listKey="uid" listValue="name" value="report.helpmateone"  headerKey="-1" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;&nbsp; 
									
								</p>
								<p>
											 助理人员二：&nbsp;
											<s:select name="report.helpmatetwo" cssStyle="width:163px;height:30px" 
												list="#request.helpmate_twoList"   listKey="uid" listValue="name" value="report.helpmatetwo"  headerKey="-1" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;&nbsp; 
											助理人员三：&nbsp;
											<s:select name="report.helpmatethree" cssStyle="width:163px;height:30px" 
												list="#request.helpmate_threeList"   listKey="uid" listValue="name" value="report.helpmatethree"  headerKey="-1" headerValue="请选择"></s:select>
											 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
											 助理人员四：&nbsp;
											<s:select name="report.helpmatefour" cssStyle="width:163px;height:30px" 
												list="#request.helpmate_fourList"   listKey="uid" listValue="name" value="report.helpmatefour"  headerKey="-1" headerValue="请选择"></s:select>
											 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
										
								</p>
								<p>
											接 受  日 期：
												<s:textfield  cssClass="text-input" 
												id="receiveTime" name="report.receivedate" />
												 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											发 放  日 期：
												<s:textfield  cssClass="text-input"  id="issueTime"
												name="report.senddate"  />
												 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											完 成  日 期：
												<s:textfield  cssClass="text-input"  id="finishTime"
												name="report.finishdate"  />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<p>
											开 票  日 期：
												<s:textfield  cssClass="text-input" 
												id="invoiceTime" name="report.invoicedate" />
												 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											开 票  金 额：
												<s:textfield  cssClass="text-input" 
												id="report.telephone" name="report.invoicesum" />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											收 款  日 期：
												<s:textfield  cssClass="text-input"  id="receiptTime"
												name="report.receiptdate"  />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<p>
											收 款  金 额：
												<s:textfield  cssClass="text-input" 
												id="report.telephone" name="report.receiptsum" />
												 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											结 算  方 式：&nbsp;
											<s:select name="report.clearway" cssStyle="width:163px;height:30px" 
												list="#request.clearwayMap"   listKey="key" listValue="value" value="report.clearway"  headerKey="0" headerValue="请选择"></s:select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											是 否  结 算：
											<s:select name="report.isclear" cssStyle="width:163px;height:30px" 
												list="#request.isclearMap"   listKey="key" listValue="value" value="report.isclear"  headerKey="0" headerValue="请选择"></s:select>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<div  style="font-size:14px;color:blue;font-weight: bold">企业信息</div>
								<p>
											企 业  名 称：
											<s:textfield  cssClass="text-input small-input"  id="medium-input"
												name="enterprise.companyname"  />
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											企 业  性 质：&nbsp;
											<s:select name="enterprise.enterprisenature" cssStyle="width:163px;height:30px" 
												list="#request.natureMap"   listKey="key" listValue="value" value="enterprise.enterprisenature"  headerKey="0" headerValue="请选择"></s:select>
											&nbsp;&nbsp;开 业  日 期：
											 	<s:textfield  cssClass="text-input"  id="openTime"
												name="enterprise.opendate"  />
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<p>
											法 人  代 表：
												<s:textfield  cssClass="text-input"  id="small-input"
												name="enterprise.lowperson"  />
												&nbsp;&nbsp;
											企业财务人员：
											<s:textfield  cssClass="text-input"  id="small-input"
												name="enterprise.financialofficer"  />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											营业执照号：
											<s:textfield  cssClass="text-input"  id="small-input"
												name="enterprise.businesslicense"  />
												 &nbsp;&nbsp;&nbsp;&nbsp;
											
								</p>
								
								<p>
											国 税  地 税：
												<s:select name="enterprise.taxtype" cssStyle="width:163px;height:30px" 
												list="#request.taxTpeMap"   listKey="key" listValue="value" value="enterprise.taxtype"  headerKey="0" headerValue="请选择"></s:select>
											&nbsp;&nbsp;&nbsp;
											国税登记证号：
													<s:textfield  cssClass="text-input"  id="openTime"
														name="enterprise.nationaltaxno"  />
													&nbsp;&nbsp;
											地税登记证号：<s:textfield  cssClass="text-input"  id="openTime"
												name="enterprise.localtaxno"  />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<p>
											货 币  类 型： <s:select name="report.currencytype" cssStyle="width:163px;height:30px" 
												list="#request.currcyTypeMap"   listKey="key" listValue="value" value="report.currencytype"  headerKey="--" headerValue="请选择"></s:select>&nbsp;&nbsp;&nbsp;
											注 册  资 本：<s:textfield  cssClass="text-input"  id="openTime"
												name="enterprise.registeredcapital"  />（万元） &nbsp;&nbsp;&nbsp;
											企业年收入：<s:textfield  cssClass="text-input"  id="openTime"
												name="enterprise.revenue"  />（万元） &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
								</p>
								<p>
											发 票  号 码：
												<s:textfield cssClass="text-input medium-input"  id="large-input"
												name="report.invoicenumber"  /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</p>
								<p>
									
											企 业  地 址：
												<s:textfield  cssClass="text-input medium-input"  id="large-input"
												name="enterprise.busineaddre"  />
								</p>
								<p>
									
											审 查  内 容：
												<s:textfield  cssClass="text-input medium-input"  id="large-input"
												name="enterprise.censorcontent"  />
								</p>
								<p >
											经 营  范 围：
											<s:textarea cssClass="text-input"  id="large-input"
												name="enterprise.scopebusiness" cols="50" rows="8"></s:textarea>
									
								</p>
								
								<p>
									<s:hidden id="report_rid" name="report.rid"></s:hidden>
									<s:hidden id="enterprise_eid" name="enterprise.eid"></s:hidden>
									<s:hidden id="reprot_coverid" name="report.coverid"></s:hidden>
									<input type="hidden" id="iflag" name="flag" value='<s:property value="flag"/>'/>
									<input class="itijiao" type="submit" id="ibtn" value="提    交" />
								</p>
							</fieldset>
							<div class="clear"></div>
							
							<!-- End .clear -->
						</form>
					</div>
					<!-- End #tab2 -->
				</div>
				<!-- End .content-box-content -->
			</div>



			<!-- End #footer -->
		</div>
		<!-- End #main-content -->
	</div>
</body>
<!-- Download From www.exet.tk-->
</html>
<script type="text/javascript"
	src="<%=path%>/resources/scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/resources/date/jquery.datepick.js"></script>
<script type="text/javascript"
	src="<%=path%>/resources/date/jquery.datepick-zh-CN.js"></script>
	
<!-- jQuery Configuration -->
<script type="text/javascript"
	src="<%=path%>/resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript"
	src="<%=path%>/resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript"
	src="<%=path%>/resources/scripts/jquery.wysiwyg.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	$('#receiveTime').datepick({dateFormat: 'yy-mm-dd'}); 
	$('#issueTime').datepick({dateFormat: 'yy-mm-dd'}); 
	$('#finishTime').datepick({dateFormat: 'yy-mm-dd'}); 
	$('#openTime').datepick({dateFormat: 'yy-mm-dd'}); 
	$('#invoiceTime').datepick({dateFormat: 'yy-mm-dd'}); 
	$('#receiptTime').datepick({dateFormat: 'yy-mm-dd'}); 
	
});


$(document).ready(function(){
	//标识
	var iflag = $('#iflag').val(); 
	var iptid = $('#report_rid').val(); 
	//1表示新增
	if(iflag==0){
		if(iptid!=''){
			$('#iflag').val(2);
			$("#ibtn").val("修   改");
		}
	}
	//2表示修改
	if(iflag==2){
		$("#ibtn").val("修   改");
	}
	//3表示查看
	if(iflag==3){
		$("#ibtn").hide();
	}
});
//-->
</script>